﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Library
{
    public class Registration : Department, IRegistrable
    {
        IStorable db = new DatabaseProxy();
        public Registration()
            : base()
        {
            this.DepartmentName = DepartmentsName.Registration;
        }

        public void RegisterClient(Client newClient)
        {
            //this.DepClients.Add(newClient);
            db.StoreClient(newClient);
        }

        public void RegisterBook(Book newBook)
        {
            //this.BookColection.Add(newBook);
            db.StoreBook(newBook);
        }

        public void RegisterNewspaper(NewsPaper newNewspaper)
        {
            //this.NewspaperColection.Add(newNewspaper);
            db.StoreNewspaper(newNewspaper);
        }

        public void RegisterMagazine(Magazine newMagazine)
        {
            //this.MagazineColection.Add(newMagazine);
            db.StoreMagazine(newMagazine);
        }
    }
}
